import { useState } from 'react';
import { message } from 'antd';
import { Map, Marker } from '@pansy/react-amap';
import type { MapProps } from '@pansy/react-amap/es/map';
import "./index.scss"

export default () => {
  const [position, setPosition] = useState();

  const mapEvents: MapProps['events'] = {
    
  }

  return (
    <div style={{ height: 1000 }}>
      <Map events={mapEvents}>
        {position && (
           <Marker position={position} />
        )}
      </Map>
    </div>
  );
};
